<script setup>

</script>

<template>
    <div class="categorize">
        <slot name="s1"></slot>
        <!-- 接收传过来的占位符 -->
        <!-- 默认插槽 -->
        <!-- <slot>默认内容</slot> -->
        <!-- 具名插槽 -->
        <slot name="s2">具名插槽</slot>
    </div>
</template>

<style scoped>
.categorize {
    border-radius: 10px;
    background-color: #c45c9c;
    box-shadow: 0 0 10px;
    padding: 10px;
    width: 200px;
    height: 300px;
}

h3 {
    background-color: yellowgreen;
    text-align: center;
}
</style>